import { Module } from '@nestjs/common'
import { RoleService } from './role.service'
import { RoleController } from './role.controller'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Role } from './entities/role.entity'
import { MenuModule } from '../menu/menu.module'
import { OperationModule } from '../operation/operation.module'
import { RoleMenu } from '../menu/entities/menu.entity'
import { LoggerModule } from 'src/logger/logger.module'
@Module({
  imports: [
    LoggerModule,
    TypeOrmModule.forFeature([Role, RoleMenu]),
    MenuModule,
    OperationModule
  ],
  controllers: [RoleController],
  providers: [RoleService],
  exports: [RoleService]
})
export class RoleModule {}
